package ac.technion.gcchat.messages;

import java.util.Hashtable;

import ac.technion.gcframework.serialization.IObjectSerializationAgent;

import ac.technion.gcchat.messages.Introduction;
import ac.technion.gcchat.messages.IntroductionSerializationAgent;
import ac.technion.gcchat.messages.MessageType;
import ac.technion.gcchat.messages.MessageTypeSerializationAgent;
import ac.technion.gcchat.messages.NewStreamMessage;
import ac.technion.gcchat.messages.NewStreamMessageSerializationAgent;
/**
 * Generated on Fri Jul 22 15:43:13 IDT 2011
 */
public class SerializationAgents
{
	private static Hashtable s_hashAgents = new Hashtable();

	static
	{
		s_hashAgents.put(Introduction.class, new IntroductionSerializationAgent());
		s_hashAgents.put(MessageType.class, new MessageTypeSerializationAgent());
		s_hashAgents.put(NewStreamMessage.class, new NewStreamMessageSerializationAgent());
	}

	public static IObjectSerializationAgent getAgent(Class cls)
	{
		return (IObjectSerializationAgent)s_hashAgents.get(cls);
	}
}